// 组件 props 的类型
type Props = {
  // 点击事件
  onClose?: () => void;
};
const Channels = ({ onClose }: Props) => {
  return (
    <div>
      channels
      <button onClick={onClose}>Close</ button>
    </div>
  );
};

export default Channels;
